//
//  YKMeViewController.m
//  baisi
//  Created by 吴高烽 on 16/8/29.
//  Copyright © 2016年 吴高烽. All rights reserved.
//

#import "YKMeViewController.h"
#import "YKWebViewController.h"
@interface YKMeViewController ()
@property (nonatomic ,strong)UITableViewCell *userCell;
@property (nonatomic ,strong)UITableViewCell *funCell;

@end
static NSString *YKMeID = @"me" ;
@implementation YKMeViewController
-(UITableViewCell *)userCell{
    if (_userCell == nil) {
        UITableViewCell *cell = [[UITableViewCell alloc]initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:YKMeID];
        cell.selectionStyle =  UITableViewCellSelectionStyleNone ;
        cell.imageView.image = [[UIImage imageNamed:@"defaultUserIcon"] circleImage];
        cell.textLabel.text = @"注册/登录" ;
        _userCell = cell ;
    }
    return _userCell ;
}
-(UITableViewCell *)funCell{
    if (_funCell == nil) {
        UITableViewCell *cell = [[UITableViewCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:YKMeID];
        _funCell = cell ;
    }
    return _funCell;
}
- (void)viewDidLoad {
    [super viewDidLoad];
    [self setupNav];
    [self setupTableView];
    [self loadData];
}
-(void)setupNav{
    self.navigationItem.title = @"我的";
    UIBarButtonItem *setItem = [UIBarButtonItem itemWithImage:@"mine-setting-icon" selectImage:@"mine-setting-icon-click" target:self action:@selector(setItmeClick)];
    UIBarButtonItem *moonItme =[UIBarButtonItem itemWithImage:@"mine-moon-icon" selectImage:@"mine-moon-icon-click" target:self action:@selector(moonItmeClick)];
    self.navigationItem.rightBarButtonItems =@[setItem,moonItme];
}
-(void)loadData{

}
-(void)setupTableView{
    self.tableView.backgroundColor = YKGlobalBackgroundColor ;
    self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone ;
    self.tableView.sectionHeaderHeight = 0 ;
    self.tableView.sectionFooterHeight = YKTopictCellMargin;
    self.tableView.contentInset = UIEdgeInsetsMake(-35, 0, 0, 0);
    self.tableView.tableFooterView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, 10, 20)];

}
//设置按钮
-(void)setItmeClick{

}
-(void)moonItmeClick{

}
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    return  1 ;
}
-(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView{
    return  3 ;
}
-(UITableViewCell*)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    if (indexPath.section == 0) {
        return self.userCell ;
    }else if (indexPath.section == 1){
        return self.funCell ;
    }
    UITableViewCell *cell =[tableView dequeueReusableCellWithIdentifier:YKMeID];
    if (cell==nil) {
        cell = [[UITableViewCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:YKMeID];
    }
    cell.textLabel.text = @"测试用的cell";
    return cell;
}
-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
//    [super tableView:tableView heightForRowAtIndexPath:indexPath];
    if (indexPath.section == 0) {
        return 78 ;
    }else if (indexPath.section == 1){
        return 172;
    }else{
        return 44;
    }
}
-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
    YKWebViewController *wevViewVC = [[YKWebViewController alloc]init];
    [self.navigationController pushViewController:wevViewVC animated:YES];

}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
}
/* 登录注册的下一cell中按钮的相关信息
{"tag_list":[{"theme_id":"3096","theme_name":"\u767e\u601d\u7ea2\u4eba"},{"theme_id":"9","theme_name":"\u81ea\u62cd"}],"square_list":[{"id":"28","name":"\u5ba1\u5e16","icon":"http:\/\/img.spriteapp.cn\/ugc\/2015\/05\/20\/150532_5078.png","url":"mod:\/\/BDJ_To_Check","android":"","iphone":"","ipad":"","market":""},{"id":"136","name":"\u5ba1\u5e16","icon":"http:\/\/mstatic.spriteapp.cn\/\/ugc\/2016\/04\/18\/dDjZck.jpg","url":"mod:\/\/BDJ_To_Check","android":"9.0|","iphone":"4.2|","ipad":"10.0|","market":""},{"id":"137","name":"\u6392\u884c\u699c","icon":"http:\/\/mstatic.spriteapp.cn\/\/ugc\/2016\/04\/18\/g8L1_u.jpg","url":"mod:\/\/BDJ_To_RankingList","android":"10.0|","iphone":"4.2|","ipad":"10.0|","market":""},{"id":"144","name":"\u5ba1\u5e16","icon":"http:\/\/mstatic.spriteapp.cn\/\/ugc\/2016\/04\/19\/VjafYH.jpg","url":"mod:\/\/BDJ_To_Check","android":"9.0|","iphone":"10.0|","ipad":"10.0|","market":""},{"id":"138","name":"\u6211\u7684\u6536\u85cf","icon":"http:\/\/mstatic.spriteapp.cn\/\/ugc\/2016\/04\/18\/zFKyGM.jpg","url":"mod:\/\/BDJ_To_Mine@dest=2","android":"10.0|","iphone":"4.2|","ipad":"10.0|","market":""},{"id":"151","name":"\u5185\u5bb9\u8d21\u732e\u699c","icon":"http:\/\/mstatic.spriteapp.cn\/\/ugc\/2016\/07\/06\/p0VaKL.jpg","url":"http:\/\/m.budejie.com\/user\/credit.html?from=singlemessage&isappinstalled=0","android":"4.0|","iphone":"3.0|","ipad":"1.0|","market":""},{"id":"31","name":"\u6bcf\u65e5\u6392\u884c","icon":"http:\/\/img.spriteapp.cn\/ugc\/2015\/05\/20\/150601_1961.png","url":"mod:\/\/BDJ_To_RecentHot","android":"|6.2.3","iphone":"|3.8.01","ipad":"|","market":""},{"id":"46","name":"\u6392\u884c\u699c","icon":"http:\/\/img.spriteapp.cn\/ugc\/2015\/12\/11\/094131_3938.png","url":"mod:\/\/BDJ_To_RankingList","android":"6.2.4|","iphone":"3.9|","ipad":"3.8|1.0","market":""},{"id":"48","name":"\u6211\u7684\u6536\u85cf","icon":"http:\/\/img.spriteapp.cn\/ugc\/2015\/05\/20\/150609_9589.png","url":"mod:\/\/BDJ_To_Mine@dest=2","android":"3.8.0|","iphone":"","ipad":"","market":""},{"id":"55","name":"\u968f\u673a\u7a7f\u8d8a","icon":"http:\/\/img.spriteapp.cn\/ugc\/2014\/12\/23\/182756_5328.png","url":"mod:\/\/BDJ_To_Cate@cate=3#type=0","android":"5.0|","iphone":"3.3|","ipad":"","market":""},{"id":"139","name":"\u968f\u673a\u7a7f\u8d8a","icon":"http:\/\/mstatic.spriteapp.cn\/\/ugc\/2016\/04\/18\/tTaJLV.jpg","url":"mod:\/\/BDJ_To_Cate@cate=3#type=0","android":"10.0|","iphone":"4.2|","ipad":"10.0|","market":""},{"id":"33","name":"\u610f\u89c1\u53cd\u9988","icon":"http:\/\/img.spriteapp.cn\/ugc\/2015\/05\/20\/150649_5314.png","url":"mod:\/\/App_To_FeedBack","android":"","iphone":"","ipad":"","market":""},{"id":"34","name":"\u6211\u7684\u5e16\u5b50","icon":"http:\/\/img.spriteapp.cn\/ugc\/2015\/05\/20\/150548_7833.png","url":"mod:\/\/BDJ_To_Mine@dest=1","android":"|5.9","iphone":"|3.5","ipad":"","market":""},{"id":"140","name":"\u610f\u89c1\u53cd\u9988","icon":"http:\/\/mstatic.spriteapp.cn\/\/ugc\/2016\/04\/18\/M9szJI.jpg","url":"mod:\/\/App_To_FeedBack","android":"10.0|","iphone":"4.2|","ipad":"10.0|","market":""},{"id":"154","name":"\u767e\u601d\u5e2e\u6d3e","icon":"http:\/\/mstatic.spriteapp.cn\/\/ugc\/2016\/10\/15\/xaN_97.jpg","url":"http:\/\/d.api.budejie.com\/gang\/enter\/","android":"4.0|","iphone":"3.0|","ipad":"1.0|","market":""},{"id":"35","name":"\u641c\u7d22","icon":"http:\/\/img.spriteapp.cn\/ugc\/2015\/05\/20\/150641_4341.png","url":"mod:\/\/App_To_SearchUser","android":"|6.0","iphone":"|4.2","ipad":"","market":""},{"id":"87","name":"\u6e38\u620f\u5927\u5385","icon":"http:\/\/img.spriteapp.cn\/ugc\/2016\/02\/15\/150052_5490.png","url":"http:\/\/www.curlend.com\/?d=20160513","android":"4.0|","iphone":"|4.1","ipad":"1.0|3.8.2","market":"guanwang|tencentyingyongbao|360zhushou|baidu|B\u2014huawei|91zhushou|anzhuo|yidongmm|B-leshi|B-meizu|xiaomi|wandoujia|leshangdian|taobao|kupaisd|sougousjzs|appchina|C-jinli|S-samsung|B-chuizi|B-aiqiyi|yingyongbao|b-huawei|b-meizu|b-leshi|s-samsung|anzhi|c-jinli|b-chuizi|b-aiqiyi"},{"id":"116","name":"\u7f8e\u5973\u76f4\u64ad","icon":"http:\/\/img.spriteapp.cn\/ugc\/2016\/01\/14\/112726_8635.png","url":"http:\/\/m.imeme.tv\/?union=bsbdj&hide_download=1","android":"4.0|","iphone":"6.0|","ipad":"1.0|3.8.2","market":"guanwang|tencentyingyongbao|360zhushou|baidu|B\u2014huawei|91zhushou|anzhuo|yidongmm|B-leshi|B-meizu|xiaomi|wandoujia|leshangdian|taobao|kupaisd|sougousjzs|appchina|C-jinli|S-samsung|B-chuizi|B-aiqiyi|yingyongbao|b-huawei|b-meizu|b-leshi|s-samsung|anzhi|c-jinli|b-chuizi|b-aiqiyi"},{"id":"141","name":"\u641c\u7d22","icon":"http:\/\/mstatic.spriteapp.cn\/\/ugc\/2016\/04\/18\/Oj6QPj.jpg","url":"mod:\/\/App_To_SearchUser","android":"6.4.7|","iphone":"4.2|","ipad":"10.0|","market":""},{"id":"109","name":"\u767e\u5ea6\u52a9\u624b","icon":"http:\/\/img.spriteapp.cn\/ugc\/2015\/12\/14\/095303_9815.png","url":"http:\/\/shouji.baidu.com\/soft\/item?docid=8199654&from=&f=search_app_%E7%99%BE%E5%BA%A6%E6%89%8B%E6%9C%BA%E5%8A%A9%E6%89%8B%40listsp_1_title%401%40header_software_input","android":"6.2.0|","iphone":"10.0|","ipad":"10.0|","market":"baidu"},{"id":"82","name":"\u5f69\u94c3","icon":"http:\/\/img.spriteapp.cn\/ugc\/2015\/07\/06\/193140_3393.png","url":"http:\/\/m.diyring.cc\/friend\/48bbbb4128a41b27","android":"4.0|","iphone":"3.0|4.1","ipad":"10.0|","market":"guanwang|tencentyingyongbao|360zhushou|baidu|B\u2014huawei|91zhushou|anzhuo|yidongmm|B-leshi|B-meizu|xiaomi|wandoujia|leshangdian|taobao|kupaisd|sougousjzs|appchina|C-jinli|S-samsung|B-chuizi|B-aiqiyi|yingyongbao|b-huawei|b-meizu|b-leshi|s-samsung|anzhi|c-jinli|b-chuizi|b-aiqiyi"},{"id":"95","name":"\u770b\u5c0f\u8bf4","icon":"http:\/\/img.spriteapp.cn\/ugc\/2016\/02\/15\/150558_9138.png","url":"http:\/\/m.kingreader.com\/Class\/List1\/bsapp.chtml?tgid=6988141","android":"4.0|","iphone":"6.0|","ipad":"","market":""},{"id":"113","name":"\u7f8e\u5973\u5199\u771f","icon":"http:\/\/img.spriteapp.cn\/ugc\/2016\/02\/22\/144250_9910.png","url":"http:\/\/tu.budejie.com\/","android":"4.0|","iphone":"3.0|4.1.1","ipad":"1.0|3.8.2","market":""},{"id":"102","name":"\u8d85\u4eba\u5854\u9632","icon":"http:\/\/mstatic.spriteapp.cn\/\/ugc\/2016\/10\/25\/P6OUVr.jpg","url":"http:\/\/h5.duantian.cn\/open\/index.html?spid=5&device=budejie#100090","android":"4.0|","iphone":"3.0|4.1","ipad":"6.0|","market":"guanwang|tencentyingyongbao|360zhushou|baidu|B\u2014huawei|91zhushou|anzhuo|yidongmm|B-leshi|B-meizu|xiaomi|wandoujia|leshangdian|taobao|kupaisd|sougousjzs|appchina|C-jinli|S-samsung|B-chuizi|B-aiqiyi|yingyongbao|b-huawei|b-meizu|b-leshi|s-samsung|anzhi|c-jinli|b-chuizi|b-aiqiyi"},{"id":"108","name":"360\u624b\u673a\u52a9\u624b","icon":"http:\/\/img.spriteapp.cn\/ugc\/2015\/12\/11\/144937_4271.png","url":"http:\/\/openbox.mobilem.360.cn\/channel\/getUrl?src=620333&app=zs","android":"6.2.0|","iphone":"10.0|","ipad":"10.0|","market":"360zhushou"},{"id":"85","name":"\u4f20\u4e16H5","icon":"http:\/\/img.spriteapp.cn\/ugc\/2015\/12\/23\/092659_3690.png","url":"http:\/\/h5.mobo168.com\/open\/index.html?spid=5&device=budejie#100004","android":"2.0|","iphone":"3.0|4.1","ipad":"6.0|","market":"guanwang|tencentyingyongbao|360zhushou|baidu|B\u2014huawei|91zhushou|anzhuo|yidongmm|B-leshi|B-meizu|xiaomi|wandoujia|leshangdian|taobao|kupaisd|sougousjzs|appchina|C-jinli|S-samsung|B-chuizi|B-aiqiyi|yingyongbao|b-huawei|b-meizu|b-leshi|s-samsung|anzhi|c-jinli|b-chuizi|b-aiqiyi"},{"id":"83","name":"\u4e0b\u8f7d\u89c6\u9891","icon":"http:\/\/img.spriteapp.cn\/ugc\/2015\/07\/30\/172608_7159.png","url":"mod:\/\/App_To_MyVideo","android":"5.9.9|","iphone":"10.0|","ipad":"100.0|","market":""},{"id":"126","name":"\u529e\u5361\u6709\u793c","icon":"http:\/\/img.spriteapp.cn\/ugc\/2016\/03\/07\/170703_9383.png","url":"https:\/\/ccclub.cmbchina.com\/mca\/MPrecontract.aspx?cardsel=1110&swbrief=y&WT.mc_id=N3700MM2061I323700YL","android":"10.0|","iphone":"6.0|","ipad":"1.0|3.8.2","market":""},{"id":"129","name":"\u5446\u5446\u5fcd\u8005\u6751","icon":"http:\/\/img.spriteapp.cn\/ugc\/2016\/03\/23\/192041_1270.png","url":"http:\/\/h5.mobo168.com\/open\/index.html?spid=5&device=budejie&gameid=1211#100027","android":"10.0|","iphone":"3.0|4.1","ipad":"6.0|","market":"guanwang|tencentyingyongbao|360zhushou|baidu|B\u2014huawei|91zhushou|anzhuo|yidongmm|B-leshi|B-meizu|xiaomi|wandoujia|leshangdian|taobao|kupaisd|sougousjzs|appchina|C-jinli|S-samsung|B-chuizi|B-aiqiyi"},{"id":"130","name":"\u722c\u5854\u4e09\u56fd","icon":"http:\/\/mstatic.spriteapp.cn\/\/ugc\/2016\/06\/13\/16opSP.jpg","url":"http:\/\/h5.mobo168.com\/open\/index.html?spid=5&device=budejie#100026","android":"4.0|","iphone":"3.0|4.1","ipad":"6.0|","market":"guanwang|tencentyingyongbao|360zhushou|baidu|B\u2014huawei|91zhushou|anzhuo|yidongmm|B-leshi|B-meizu|xiaomi|wandoujia|leshangdian|taobao|kupaisd|sougousjzs|appchina|C-jinli|S-samsung|B-chuizi|B-aiqiyi|yingyongbao|b-huawei|b-meizu|b-leshi|s-samsung|anzhi|c-jinli|b-chuizi|b-aiqiyi"},{"id":"131","name":"\u6697\u9ed1\u4e4b\u738b","icon":"http:\/\/mstatic.spriteapp.cn\/\/ugc\/2016\/06\/29\/8d_fP0.jpg","url":"http:\/\/h5.mobo168.com\/open\/index.html?spid=5&device=budejie#100046","android":"10.0|","iphone":"3.0|4.1","ipad":"6.0|","market":"guanwang|tencentyingyongbao|360zhushou|baidu|B\u2014huawei|91zhushou|anzhuo|yidongmm|B-leshi|B-meizu|xiaomi|wandoujia|leshangdian|taobao|kupaisd|sougousjzs|appchina|C-jinli|S-samsung|B-chuizi|B-aiqiyi"},{"id":"134","name":"\u5927\u4e3b\u5bb0","icon":"http:\/\/mstatic.spriteapp.cn\/\/ugc\/2016\/06\/29\/8HPp1H.jpg","url":"http:\/\/h5.mobo168.com\/open\/index.html?spid=5&device=budejie#100015","android":"10.0|","iphone":"3.0|4.1","ipad":"6.0|","market":"guanwang|tencentyingyongbao|360zhushou|baidu|B\u2014huawei|91zhushou|anzhuo|yidongmm|B-leshi|B-meizu|xiaomi|wandoujia|leshangdian|taobao|kupaisd|sougousjzs|appchina|C-jinli|S-samsung|B-chuizi|B-aiqiyi"},{"id":"153","name":"\u5934\u6761\u65b0\u95fb","icon":"http:\/\/mstatic.spriteapp.cn\/\/ugc\/2016\/08\/26\/vF9w8T.jpg","url":"http:\/\/toutiao.eastday.com\/nohd\/index.html?qid=baisi","android":"4.0|","iphone":"4.0|","ipad":"1.0|","market":""},{"id":"0","name":"\u66f4\u591a","icon":"http:\/\/img.spriteapp.cn\/ugc\/2014\/05\/06\/141211_3901.png","url":"","android":"","iphone":"","ipad":"","market":""}]}
 */
@end
